<?php
/* Construct Top Navigation Menu for Pages */
function wpboxes_pagemenu(){
$pagemenu = wp_nav_menu(array(
					'theme_location'  => 'topmenu',
					'sort_column' => 'menu_order',
					'container_class' => 'pagemenu'
				));
	return $pagemenu;
}

function wpboxes_catmenu(){
$catmenu = wp_nav_menu(array(
					'theme_location'  => 'catmenu',
					'sort_column' => 'menu_order',
					'container_class' => 'catmenu'
					));
	return $catmenu;
}

register_nav_menus( array(
	'topmenu' => 'Pages Menu',
	'catmenu' => 'Categoty Menu'
) );
?>